home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / vbasic / health.exe / ASSESS1.FRM < prev    next >
Text File  |  1993-07-22  |  30KB  |  831 lines

  1. VERSION 2.00
  2. Begin Form assess1 
  3.    AutoRedraw      =   -1  'True
  4.    BackColor       =   &H00FFFF00&
  5.    BorderStyle     =   1  'Fixed Single
  6.    ClientHeight    =   6915
  7.    ClientLeft      =   210
  8.    ClientTop       =   405
  9.    ClientWidth     =   9525
  10.    ControlBox      =   0   'False
  11.    Height          =   7320
  12.    Left            =   150
  13.    LinkMode        =   1  'Source
  14.    LinkTopic       =   "Form1"
  15.    MaxButton       =   0   'False
  16.    MinButton       =   0   'False
  17.    ScaleHeight     =   6915
  18.    ScaleWidth      =   9525
  19.    Tag             =   "admission"
  20.    Top             =   60
  21.    Width           =   9645
  22.    Begin SSFrame Frame3D1 
  23.       Alignment       =   2  'Center
  24.       Caption         =   "Community Memorial Admission Assessment"
  25.       Font3D          =   2  'Raised w/heavy shading
  26.       FontBold        =   -1  'True
  27.       FontItalic      =   0   'False
  28.       FontName        =   "MS Sans Serif"
  29.       FontSize        =   13.5
  30.       FontStrikethru  =   0   'False
  31.       FontUnderline   =   0   'False
  32.       ForeColor       =   &H00000000&
  33.       Height          =   6855
  34.       Left            =   0
  35.       TabIndex        =   2
  36.       Top             =   -120
  37.       Width           =   9615
  38.       Begin AniPushButton AniButton2 
  39.          BackColor       =   &H00FFFFFF&
  40.          Height          =   480
  41.          Left            =   3960
  42.          Picture         =   ASSESS1.FRX:0000
  43.          Speed           =   162
  44.          TabIndex        =   29
  45.          Top             =   6120
  46.          Width           =   465
  47.       End
  48.       Begin AniPushButton AniButton1 
  49.          BackColor       =   &H00C0C0C0&
  50.          Caption         =   "Next Page"
  51.          Height          =   615
  52.          Index           =   0
  53.          Left            =   5040
  54.          Picture         =   ASSESS1.FRX:05E2
  55.          Speed           =   162
  56.          TabIndex        =   28
  57.          TextPosition    =   2  'Left
  58.          Top             =   6000
  59.          Width           =   1455
  60.       End
  61.       Begin AniPushButton AniButton1 
  62.          BackColor       =   &H00C0C0C0&
  63.          Caption         =   "Back Page"
  64.          Height          =   615
  65.          Index           =   1
  66.          Left            =   720
  67.          Picture         =   ASSESS1.FRX:148E
  68.          Speed           =   162
  69.          TabIndex        =   41
  70.          TextPosition    =   1  'Right
  71.          Top             =   6000
  72.          Width           =   1455
  73.       End
  74.       Begin PictureBox Picture2 
  75.          BackColor       =   &H00C0C0C0&
  76.          BorderStyle     =   0  'None
  77.          Height          =   2535
  78.          Left            =   120
  79.          ScaleHeight     =   4.774
  80.          ScaleMode       =   0  'User
  81.          ScaleWidth      =   5.58
  82.          TabIndex        =   4
  83.          Top             =   3360
  84.          Width           =   8415
  85.          Begin PictureBox Picture6 
  86.             BackColor       =   &H00C0C0C0&
  87.             BorderStyle     =   0  'None
  88.             Height          =   1815
  89.             Left            =   4560
  90.             ScaleHeight     =   1815
  91.             ScaleWidth      =   3255
  92.             TabIndex        =   15
  93.             Top             =   120
  94.             Width           =   3255
  95.             Begin SSCheck Check3D3 
  96.                Caption         =   "INTRODUCED TO ROOMMATE"
  97.                Font3D          =   0  'None
  98.                ForeColor       =   &H00FF0000&
  99.                Height          =   375
  100.                Index           =   8
  101.                Left            =   2040
  102.                TabIndex        =   26
  103.                Top             =   1080
  104.                Width           =   495
  105.             End
  106.             Begin SSCheck Check3D3 
  107.                Caption         =   "PATIENT HANDBOOK"
  108.                Font3D          =   0  'None
  109.                ForeColor       =   &H00FF0000&
  110.                Height          =   375
  111.                Index           =   7
  112.                Left            =   1440
  113.                TabIndex        =   25
  114.                Top             =   1080
  115.                Width           =   495
  116.             End
  117.             Begin SSCheck Check3D3 
  118.                Caption         =   "VALUABLES IN POSSESSION"
  119.                Font3D          =   0  'None
  120.                ForeColor       =   &H00FF0000&
  121.                Height          =   375
  122.                Index           =   6
  123.                Left            =   840
  124.                TabIndex        =   24
  125.                Top             =   1080
  126.                Width           =   495
  127.             End
  128.             Begin SSCheck Check3D2 
  129.                Caption         =   "EXPLAINED"
  130.                Font3D          =   0  'None
  131.                ForeColor       =   &H00FF0000&
  132.                Height          =   375
  133.                Left            =   120
  134.                TabIndex        =   17
  135.                Top             =   1080
  136.                Width           =   255
  137.             End
  138.             Begin SSCheck Check3D3 
  139.                Caption         =   "VALUABLES IN SAFE"
  140.                Font3D          =   0  'None
  141.                ForeColor       =   &H00FF0000&
  142.                Height          =   375
  143.                Index           =   5
  144.                Left            =   2040
  145.                TabIndex        =   23
  146.                Top             =   600
  147.                Width           =   495
  148.             End
  149.             Begin SSCheck Check3D3 
  150.                Caption         =   "VALUABLES SENT HOME"
  151.                Font3D          =   0  'None
  152.                ForeColor       =   &H00FF0000&
  153.                Height          =   375
  154.                Index           =   4
  155.                Left            =   1440
  156.                TabIndex        =   22
  157.                Top             =   600
  158.                Width           =   495
  159.             End
  160.             Begin SSCheck Check3D3 
  161.                Caption         =   "USE OF PHONE"
  162.                Font3D          =   0  'None
  163.                ForeColor       =   &H00FF0000&
  164.                Height          =   375
  165.                Index           =   3
  166.                Left            =   840
  167.                TabIndex        =   21
  168.                Top             =   600
  169.                Width           =   495
  170.             End
  171.             Begin SSCheck Check3D3 
  172.                Caption         =   "BED ADJUSTMENT OPERATION"
  173.                Font3D          =   0  'None
  174.                ForeColor       =   &H00FF0000&
  175.                Height          =   375
  176.                Index           =   2
  177.                Left            =   2040
  178.                TabIndex        =   20
  179.                Top             =   120
  180.                Width           =   495
  181.             End
  182.             Begin SSCheck Check3D3 
  183.                Caption         =   "CALL LIGHT IN REACH"
  184.                Font3D          =   0  'None
  185.                ForeColor       =   &H00FF0000&
  186.                Height          =   375
  187.                Index           =   1
  188.                Left            =   1440
  189.                TabIndex        =   19
  190.                Top             =   120
  191.                Width           =   495
  192.             End
  193.             Begin SSCheck Check3D3 
  194.                Caption         =   "VISITING HOURS"
  195.                Font3D          =   0  'None
  196.                ForeColor       =   &H00FF0000&
  197.                Height          =   375
  198.                Index           =   0
  199.                Left            =   840
  200.                TabIndex        =   18
  201.                Top             =   120
  202.                Width           =   495
  203.             End
  204.          End
  205.          Begin PictureBox Picture5 
  206.             BackColor       =   &H00C0C0C0&
  207.             BorderStyle     =   0  'None
  208.             Height          =   2175
  209.             Left            =   360
  210.             ScaleHeight     =   2175
  211.             ScaleWidth      =   3135
  212.             TabIndex        =   14
  213.             Top             =   -240
  214.             Width           =   3135
  215.             Begin SSOption Option3D10 
  216.                Caption         =   "UNABLE TO TAKE HISTORY"
  217.                Font3D          =   0  'None
  218.                ForeColor       =   &H00000000&
  219.                Height          =   375
  220.                Index           =   4
  221.                Left            =   720
  222.                TabIndex        =   40
  223.                Top             =   1440
  224.                Width           =   855
  225.             End
  226.             Begin SSOption Option3D10 
  227.                Caption         =   "PREVIOUS MEDICAL RECORD"
  228.                Font3D          =   0  'None
  229.                ForeColor       =   &H00000000&
  230.                Height          =   375
  231.                Index           =   3
  232.                Left            =   1080
  233.                TabIndex        =   39
  234.                Top             =   1200
  235.                Width           =   855
  236.             End
  237.             Begin SSOption Option3D10 
  238.                Caption         =   "FRIEND"
  239.                Font3D          =   0  'None
  240.                ForeColor       =   &H00000000&
  241.                Height          =   375
  242.                Index           =   2
  243.                Left            =   600
  244.                TabIndex        =   38
  245.                Top             =   840
  246.                Width           =   855
  247.             End
  248.             Begin SSOption Option3D10 
  249.                Caption         =   "FAMILY MEMBER"
  250.                Font3D          =   0  'None
  251.                ForeColor       =   &H00000000&
  252.                Height          =   375
  253.                Index           =   1
  254.                Left            =   720
  255.                TabIndex        =   37
  256.                Top             =   600
  257.                Width           =   855
  258.             End
  259.             Begin SSOption Option3D10 
  260.                Caption         =   "PATIENT"
  261.                Font3D          =   0  'None
  262.                ForeColor       =   &H00000000&
  263.                Height          =   375
  264.                Index           =   0
  265.                Left            =   720
  266.                TabIndex        =   16
  267.                Top             =   240
  268.                Width           =   855
  269.             End
  270.             Begin Label Label5 
  271.                BackColor       =   &H00C0C0C0&
  272.                Caption         =   "PATIENT UNRESPONSIVE "
  273.                ForeColor       =   &H00000000&
  274.                Height          =   375
  275.                Left            =   600
  276.                TabIndex        =   27
  277.                Top             =   1800
  278.                Width           =   1695
  279.             End
  280.          End
  281.       End
  282.       Begin PictureBox Picture1 
  283.          BackColor       =   &H00C0C0C0&
  284.          BorderStyle     =   0  'None
  285.          Height          =   2895
  286.          Left            =   360
  287.          ScaleHeight     =   5
  288.          ScaleMode       =   0  'User
  289.          ScaleWidth      =   5.5
  290.          TabIndex        =   3
  291.          Top             =   480
  292.          Width           =   8775
  293.          Begin SSCheck Check3D1 
  294.             Caption         =   " CORRECT IDENTIFICATION BAND"
  295.             Font3D          =   0  'None
  296.             ForeColor       =   &H00FF0000&
  297.             Height          =   255
  298.             Left            =   240
  299.             TabIndex        =   9
  300.             Top             =   2520
  301.             Width           =   3375
  302.          End
  303.          Begin PictureBox Picture4 
  304.             BackColor       =   &H00C0C0C0&
  305.             Height          =   1695
  306.             Left            =   3840
  307.             ScaleHeight     =   3
  308.             ScaleMode       =   0  'User
  309.             ScaleWidth      =   2.5
  310.             TabIndex        =   6
  311.             Top             =   960
  312.             Width           =   3375
  313.             Begin SSOption Option3D4 
  314.                Caption         =   "DOCTOR'S OFFICE"
  315.                Font3D          =   0  'None
  316.                ForeColor       =   &H00000000&
  317.                Height          =   495
  318.                Index           =   2
  319.                Left            =   600
  320.                TabIndex        =   33
  321.                Top             =   1080
  322.                Width           =   1095
  323.             End
  324.             Begin SSOption Option3D4 
  325.                Caption         =   "OTHER"
  326.                Font3D          =   0  'None
  327.                ForeColor       =   &H00000000&
  328.                Height          =   495
  329.                Index           =   5
  330.                Left            =   1800
  331.                TabIndex        =   36
  332.                Top             =   960
  333.                Width           =   1095
  334.             End
  335.             Begin SSOption Option3D4 
  336.                Caption         =   "ER / OPD"
  337.                Font3D          =   0  'None
  338.                ForeColor       =   &H00000000&
  339.                Height          =   495
  340.                Index           =   1
  341.                Left            =   720
  342.                TabIndex        =   32
  343.                Top             =   600
  344.                Width           =   1095
  345.             End
  346.             Begin SSOption Option3D4 
  347.                Caption         =   "RECOVERY ROOM"
  348.                Font3D          =   0  'None
  349.                ForeColor       =   &H00000000&
  350.                Height          =   495
  351.                Index           =   4
  352.                Left            =   1680
  353.                TabIndex        =   35
  354.                Top             =   480
  355.                Width           =   1095
  356.             End
  357.             Begin SSOption Option3D4 
  358.                Caption         =   "NURSING HOME"
  359.                Font3D          =   0  'None
  360.                ForeColor       =   &H00000000&
  361.                Height          =   495
  362.                Index           =   3
  363.                Left            =   1560
  364.                TabIndex        =   34
  365.                Top             =   120
  366.                Width           =   1095
  367.             End
  368.             Begin SSOption Option3D4 
  369.                Caption         =   "HOME"
  370.                Font3D          =   0  'None
  371.                ForeColor       =   &H00000000&
  372.                Height          =   495
  373.                Index           =   0
  374.                Left            =   840
  375.                TabIndex        =   8
  376.                Top             =   120
  377.                Width           =   1095
  378.             End
  379.             Begin Label Label4 
  380.                Alignment       =   2  'Center
  381.                BackColor       =   &H00C0C0C0&
  382.                Caption         =   "Label4"
  383.                Height          =   975
  384.                Left            =   240
  385.                TabIndex        =   12
  386.                Top             =   240
  387.                Width           =   375
  388.             End
  389.          End
  390.          Begin PictureBox Picture3 
  391.             BackColor       =   &H00C0C0C0&
  392.             Height          =   1695
  393.             Left            =   240
  394.             ScaleHeight     =   3
  395.             ScaleMode       =   0  'User
  396.             ScaleWidth      =   2.5
  397.             TabIndex        =   5
  398.             Top             =   840
  399.             Width           =   3135
  400.             Begin SSOption Option3D1 
  401.                Caption         =   "STRETCHER"
  402.                Font3D          =   0  'None
  403.                ForeColor       =   &H00000000&
  404.                Height          =   375
  405.                Index           =   2
  406.                Left            =   1560
  407.                TabIndex        =   31
  408.                Top             =   1080
  409.                Width           =   495
  410.             End
  411.             Begin SSOption Option3D1 
  412.                Caption         =   "WHEELCHAIR"
  413.                Font3D          =   0  'None
  414.                ForeColor       =   &H00000000&
  415.                Height          =   375
  416.                Index           =   1
  417.                Left            =   1560
  418.                TabIndex        =   30
  419.                Top             =   600
  420.                Width           =   495
  421.             End
  422.             Begin SSOption Option3D1 
  423.                Caption         =   "AMBULATORY"
  424.                Font3D          =   0  'None
  425.                ForeColor       =   &H00000000&
  426.                Height          =   375
  427.                Index           =   0
  428.                Left            =   1680
  429.                TabIndex        =   7
  430.                Top             =   120
  431.                Width           =   495
  432.             End
  433.             Begin Label Label3 
  434.                Alignment       =   2  'Center
  435.                BackColor       =   &H00C0C0C0&
  436.                Caption         =   "Label3"
  437.                Height          =   975
  438.                Left            =   360
  439.                TabIndex        =   11
  440.                Top             =   240
  441.                Width           =   735
  442.             End
  443.          End
  444.          Begin VHedit HEdit2 
  445.             Alignment       =   2  'Center
  446.             Enabled         =   0   'False
  447.             FontBold        =   0   'False
  448.             FontItalic      =   0   'False
  449.             FontName        =   "MS Sans Serif"
  450.             FontSize        =   18
  451.             FontStrikethru  =   0   'False
  452.             FontUnderline   =   0   'False
  453.             Height          =   435
  454.             InflateBottom   =   0.466
  455.             InflateLeft     =   0.169
  456.             InflateRight    =   0.169
  457.             InflateTop      =   0.466
  458.             Left            =   5040
  459.             TabIndex        =   44
  460.             Text            =   "HEdit2"
  461.             Top             =   120
  462.             Version         =   268435458
  463.             Visible         =   0   'False
  464.             Width           =   2775
  465.          End
  466.          Begin VBedit BEdit1 
  467.             BackColor       =   &H00FFFFFF&
  468.             CellHeight      =   0.829
  469.             CellWidth       =   0.226
  470.             CombBaseLine    =   0.674
  471.             CombEndHeight   =   0.207
  472.             CombEndMarker   =   0   'False
  473.             CombHeight      =   0.104
  474.             FontBold        =   0   'False
  475.             FontItalic      =   0   'False
  476.             FontName        =   "MS Sans Serif"
  477.             FontSize        =   18
  478.             FontStrikethru  =   0   'False
  479.             FontUnderline   =   0   'False
  480.             Height          =   495
  481.             InflateBottom   =   0.311
  482.             InflateLeft     =   0.113
  483.             InflateRight    =   0.113
  484.             InflateTop      =   0.415
  485.             InkWidth        =   2
  486.             Left            =   1320
  487.             OnTap           =   -1  'True
  488.             TabIndex        =   0
  489.             Text            =   "BEdit1"
  490.             Top             =   120
  491.             Version         =   268435458
  492.             Width           =   2655
  493.          End
  494.          Begin AniPushButton AniButton3 
  495.             BackColor       =   &H00C0C0C0&
  496.             Cycle           =   2  '2-state 1/2 & 1/2
  497.             Height          =   480
  498.             Index           =   0
  499.             Left            =   240
  500.             PictDrawMode    =   1  'Autosize control
  501.             Picture         =   ASSESS1.FRX:233A
  502.             TabIndex        =   42
  503.             Top             =   120
  504.             Width           =   480
  505.          End
  506.          Begin VBedit BEdit2 
  507.             BackColor       =   &H00FFFFFF&
  508.             CellHeight      =   0.829
  509.             CellWidth       =   0.226
  510.             CombBaseLine    =   0.674
  511.             CombEndHeight   =   0.207
  512.             CombEndMarker   =   0   'False
  513.             CombHeight      =   0.104
  514.             FontBold        =   0   'False
  515.             FontItalic      =   0   'False
  516.             FontName        =   "MS Sans Serif"
  517.             FontSize        =   18
  518.             FontStrikethru  =   0   'False
  519.             FontUnderline   =   0   'False
  520.             Height          =   495
  521.             InflateBottom   =   0.311
  522.             InflateLeft     =   0.113
  523.             InflateRight    =   0.113
  524.             InflateTop      =   0.415
  525.             InkWidth        =   2
  526.             Left            =   5400
  527.             OnTap           =   -1  'True
  528.             TabIndex        =   1
  529.             Text            =   "BEdit2"
  530.             Top             =   0
  531.             Version         =   268435458
  532.             Width           =   3015
  533.          End
  534.          Begin VHedit HEdit1 
  535.             Alignment       =   2  'Center
  536.             CharSet         =   16412
  537.             Enabled         =   0   'False
  538.             FontBold        =   0   'False
  539.             FontItalic      =   0   'False
  540.             FontName        =   "MS Sans Serif"
  541.             FontSize        =   18
  542.             FontStrikethru  =   0   'False
  543.             FontUnderline   =   0   'False
  544.             Height          =   435
  545.             InflateBottom   =   0.466
  546.             InflateLeft     =   0.169
  547.             InflateRight    =   0.169
  548.             InflateTop      =   0.466
  549.             Left            =   1320
  550.             TabIndex        =   43
  551.             Text            =   "HEdit1"
  552.             Top             =   0
  553.             Version         =   268435458
  554.             Visible         =   0   'False
  555.             Width           =   2415
  556.          End
  557.          Begin Label Label2 
  558.             Alignment       =   2  'Center
  559.             BackColor       =   &H00C0C0C0&
  560.             Caption         =   "Label2"
  561.             Height          =   375
  562.             Left            =   4560
  563.             TabIndex        =   10
  564.             Top             =   360
  565.             Width           =   495
  566.          End
  567.          Begin Label Label1 
  568.             Alignment       =   2  'Center
  569.             BackColor       =   &H00C0C0C0&
  570.             Caption         =   "Label1"
  571.             Height          =   375
  572.             Left            =   960
  573.             TabIndex        =   13
  574.             Top             =   240
  575.             Width           =   255
  576.          End
  577.       End
  578.    End
  579. End
  580. Dim group As Integer
  581.  
  582. Sub AniButton1_Click (index As Integer)
  583. If smartform(2) Then
  584.  
  585.         If index = 0 Then
  586.         assess2.Show
  587.         ASSESS1.Hide
  588.         Else
  589.         idform.Show
  590.         ASSESS1.Hide
  591.         End If
  592. Else
  593. formcheck "Admission"
  594. End If
  595. End Sub
  596.  
  597. Sub AniButton2_Click ()
  598. If smartform(2) Then
  599. menumode ASSESS1
  600. Else
  601. formcheck "Admission"
  602. End If
  603.  
  604. End Sub
  605.  
  606. Sub AniButton3_Click (index As Integer)
  607.  
  608. Select Case anibutton3(index).value
  609.     Case 2
  610.     editswap bedit1, hedit1, 1
  611.     hedit1.visible = -1
  612.     bedit1.visible = 0
  613.     editswap bedit2, hedit2, 1
  614.     hedit2.visible = -1
  615.     bedit2.visible = 0
  616.     temprecord.tyme = bedit2.text
  617.     temprecord.dayt = bedit1.text
  618.     Case 1
  619.     editswap bedit1, hedit1, 2
  620.     hedit1.visible = 0
  621.     bedit1.visible = -1
  622.     editswap bedit2, hedit2, 2
  623.     hedit2.visible = 0
  624.     bedit2.visible = -1
  625.  
  626. End Select
  627.  
  628. End Sub
  629.  
  630. Sub BEdit1_Update ()
  631. 'bedit1.text = "  /  /"
  632. If bedit1.selstart = 7 Then
  633. If Mid$(bedit1.text, 3, 1) <> "/" Or Mid$(bedit1.text, 6, 1) <> "/" Then
  634.     For n = 1 To Len(bedit1.text)
  635.         If n = 3 Or n = 6 Then
  636.             a$ = a$ + "/"
  637.             'a$ = a$ + Mid$(bedit1.text, n, 1)
  638.         Else
  639.             a$ = a$ + Mid$(bedit1.text, n, 1)
  640.         End If
  641.     Next n
  642.     bedit1.text = a$
  643. End If
  644. bedit1.selstart = 8
  645. End If
  646. End Sub
  647.  
  648. Sub BEdit2_Update ()
  649. 'bedit2.text = "  :  :  "
  650. If bedit2.selstart = 7 Then
  651. If Mid$(bedit2.text, 3, 1) <> ":" Or Mid$(bedit2.text, 6, 1) <> ":" Then
  652.     For n = 1 To Len(bedit2.text)
  653.         If n = 3 Or n = 6 Then
  654.             a$ = a$ + ":"
  655.             'a$ = a$ + Mid$(bedit2.text, n, 1)
  656.         Else
  657.             a$ = a$ + Mid$(bedit2.text, n, 1)
  658.         End If
  659.     Next n
  660.     bedit2.text = a$
  661. End If
  662. bedit2.selstart = 8
  663. End If
  664. End Sub
  665.  
  666. Sub Check3D1_Click (value As Integer)
  667.  
  668. If check3d1.value = -1 Then
  669. temprecord.chk1 = -1
  670. check3d1.forecolor = &H0&
  671. Else
  672. check3d1.forecolor = &HFF0000
  673. End If
  674. End Sub
  675.  
  676. Sub Check3D2_Click (value As Integer)
  677. If check3d2.value = -1 Then
  678. temprecord.chk2 = -1
  679. check3d2.forecolor = &H0&
  680. Else
  681. check3d2.forecolor = &HFF0000
  682. End If
  683.  
  684. End Sub
  685.  
  686. Sub Check3D3_Click (index As Integer, value As Integer)
  687. If check3d3(index).value = -1 Then
  688. temprecord.chicks.chek1 = -1
  689. check3d3(index).forecolor = &H0&
  690. Else
  691. check3d3(index).forecolor = &HFF0000
  692. End If
  693. check3d2.SetFocus
  694. End Sub
  695.  
  696. Sub Form_Load ()
  697. bedit1.charset = ALC_NUMERIC Or ALC_PUNC Or ALC_MATH Or ALC_GESTURE
  698. bedit2.charset = ALC_NUMERIC Or ALC_PUNC Or ALC_MATH Or ALC_GESTURE
  699. hedit1.charset = ALC_NUMERIC Or ALC_PUNC Or ALC_MATH Or ALC_GESTURE
  700. hedit2.charset = ALC_NUMERIC Or ALC_PUNC Or ALC_MATH Or ALC_GESTURE
  701.     For n = 0 To 2
  702.         option3d1(n).forecolor = &HFF0000
  703.         Next n
  704.     For n = 0 To 5
  705.         option3d4(n).forecolor = &HFF0000
  706.         Next n
  707.     For n = 0 To 4
  708.         option3d10(n).forecolor = &HFF0000
  709.         Next n
  710.         label5.forecolor = &HFF0000
  711. ASSESS1.Move -screen.width - 10, 0, screen.width, screen.height
  712. bedit1.text = "  /  /"
  713. bedit2.text = "  :  :"
  714. frame3d1.caption = NextCompanyCaption$
  715. frame3d1.Move ASSESS1.scaleleft, ASSESS1.scaletop, ASSESS1.scalewidth, ASSESS1.scaleheight
  716. picture1.Move frame3d1.left, frame3d1.top + 2.5 * TextHeight(frame3d1.caption), frame3d1.width, frame3d1.height \ 2 - 2 * TextHeight(frame3d1.caption)
  717. picture2.Move frame3d1.left, frame3d1.height \ 2 + TextHeight(check3d1.caption), frame3d1.width, frame3d1.height \ 2 - anibutton1(0).height
  718. bedit1.Move .5, 0, picture1.scalewidth / 3.1, picture1.scaleheight / 6
  719. hedit1.Move .5, 0, picture1.scalewidth / 3.1, picture1.scaleheight / 5.5
  720. label1.fontname = "arial"
  721. label1.fontsize = 12
  722. label1.caption = "DATE"
  723. label1.Move 0, 0, picture1.scalewidth / 12, picture1.scaleheight / 6
  724. anibutton3(0).Move bedit1.width + bedit1.left + anibutton3(0).width, 0
  725. bedit2.Move 3.5, 0, picture1.scalewidth / 3.1, picture1.scaleheight / 6
  726. hedit2.Move 3.5, 0, picture1.scalewidth / 3.1, picture1.scaleheight / 5.5
  727. label2.fontname = "arial"
  728. label2.fontsize = 12
  729. label2.caption = "TIME"
  730. label2.Move 3, 0, picture1.scalewidth / 12, picture1.scaleheight / 6
  731.  
  732. picture3.Move 0, 1, picture1.scalewidth / 3, picture1.scaleheight * .66
  733. picture4.Move 2, 1, picture1.scalewidth * .67, picture1.scaleheight * .66
  734. check3d1.Move 1, 5
  735. anibutton1(0).Move frame3d1.width - anibutton1(0).width * 1.1, frame3d1.height - anibutton1(0).height * 1.1
  736. anibutton1(1).Move .1 * anibutton1(1).width, frame3d1.height - anibutton1(0).height * 1.1
  737. anibutton2.Move (frame3d1.width - anibutton2.width) / 2, frame3d1.height - anibutton2.height * 1.3
  738. picture3.Scale (1, 1)-(3, 4)
  739. label3.Move 1, 1, picture3.scalewidth / 2, picture3.scaleheight / 2
  740. label3.fontname = "arial"
  741. label3.fontsize = 12
  742. label3.caption = "                         MODE OF ADMISSION"
  743. option3d1(0).Move 2, 1, picture3.scalewidth / 2, picture3.scaleheight / 3
  744. option3d1(1).Move 2, 2, picture3.scalewidth / 2, picture3.scaleheight / 3
  745. option3d1(2).Move 2, 3, picture3.scalewidth / 2, picture3.scaleheight / 3
  746. picture4.Scale (1, 1)-(4, 4)
  747. label4.Move 1, 1, picture4.scalewidth / 3, picture4.scaleheight / 2
  748. label4.fontname = "arial"
  749. label4.fontsize = 12
  750. label4.caption = "                         ADMITTED        FROM:"
  751. option3d4(0).Move 2, 1, picture4.scalewidth * .33, picture3.scaleheight / 3
  752. option3d4(1).Move 2, 2, picture4.scalewidth * .33, picture3.scaleheight / 3
  753. option3d4(2).Move 2, 3, picture4.scalewidth * .33, picture3.scaleheight / 3
  754. option3d4(3).Move 3, 1, picture4.scalewidth * .33, picture3.scaleheight / 3
  755. option3d4(4).Move 3, 2, picture4.scalewidth * .33, picture3.scaleheight / 3
  756. option3d4(5).Move 3, 3, picture4.scalewidth * .33, picture3.scaleheight / 3
  757. picture2.Scale (1, 1)-(5, 2)
  758. picture5.Move 1, 1, picture2.scalewidth / 2, picture2.scaleheight
  759. picture6.Move 3, 1, picture2.scalewidth / 2, picture2.scaleheight
  760. picture5.Scale (1, 1)-(5, 10): picture6.Scale (1, 1)-(5, 12)
  761. picture5.fontname = "arial": picture6.fontname = "arial"
  762. picture5.fontsize = 12: picture6.fontsize = 12
  763. picture5.currentx = 1: picture5.currenty = 1
  764. picture6.currentx = 1: picture6.currenty = 1
  765. picture5.autoredraw = -1: picture6.autoredraw = -1
  766. picture5.Print "     INFORMATION GIVEN BY:"
  767. picture6.Print "ORIENTATION TO ROOM "
  768. option3d10(0).Move 1, 2, picture5.scalewidth, picture5.scaleheight / 8
  769. option3d10(1).Move 1, 3, picture5.scalewidth, picture5.scaleheight / 8
  770. option3d10(2).Move 1, 4, picture5.scalewidth, picture5.scaleheight / 8
  771. option3d10(3).Move 1, 5, picture5.scalewidth, picture5.scaleheight / 8
  772. option3d10(4).Move 1, 6, picture5.scalewidth, picture5.scaleheight / 8
  773. label5.caption = "    PATIENT UNRESPONSIVE OR CONFUSED" + Chr$(13) + Chr$(10) + "     NOT ACCOMPANIED BY FAMILY OR FRIEND"
  774. label5.Move 1, 7.1, picture5.scalewidth, picture5.scaleheight / 7
  775. check3d2.Move 3.5, 1, picture6.scalewidth, picture6.scaleheight / 10
  776. For n = 1 To 9
  777. check3d3(n - 1).Move 1, n + 1, picture6.scalewidth, picture6.scaleheight / 10
  778. Next n
  779. ASSESS1.Move 0, 0
  780. End Sub
  781.  
  782. Sub Option3D1_Click (index As Integer, value As Integer)
  783.  
  784. option3d1(index).forecolor = &H0&
  785.  
  786. group = 3
  787.  
  788. 'highlight assess1, group, index
  789.  
  790. temprecord.theoption.opt1 = -1
  791. If Not nofocuscalls Then check3d1.SetFocus
  792. End Sub
  793.  
  794. Sub Option3D10_Click (index As Integer, value As Integer)
  795.  
  796. option3d10(index).forecolor = &H0&
  797.  
  798.  
  799. If index = 4 Then label5.forecolor = &H0&
  800. group = 5
  801. 'highlight assess1, group, index
  802.  
  803. temprecord.theoption.opt10 = -1
  804.  
  805. If Not nofocuscalls Then check3d1.SetFocus
  806.  
  807. End Sub
  808.  
  809. Sub Option3D4_Click (index As Integer, value As Integer)
  810.  
  811. option3d4(index).forecolor = &H0&
  812.  
  813. group = 6
  814. 'highlight assess1, group, index
  815.  
  816. If index = 5 Then
  817. BEditform.label1.tag = " Enter Location Prior To Admission"
  818. BEditform.command2.tag = " Re-Enter Location Prior To Admission"
  819. BEditform.Show 1
  820. End If
  821.  
  822. temprecord.theoption.opt4 = -1
  823. If Not nofocuscalls Then check3d1.SetFocus
  824.  
  825. End Sub
  826.  
  827. Sub Picture1_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
  828. 'label1.caption = Str$(x) + " " + Str$(y)
  829. End Sub
  830.  
  831.